<?php get_header(); ?>
	<?php if (have_posts()) : ?>
		<div class="container content">
				<?php
				while (have_posts()) : the_post(); 
					if(!get_post_format()) {
						get_template_part('IndexPosts/index', 'standard');        
					} 
				else {
			       get_template_part('IndexPosts/index', get_post_format());
			    }
			    endwhile; 
				?>
			</div>
		</div>
		<div class="container">
    		<div class="full column">
    			<div id="pagination-wrap">
	    			<div id="pagination">
						<div class="page left">
							<?php 
							if( get_previous_posts_link() != '') {
								previous_posts_link('<i class="icon-left-dir"></i>'); 
							} 
							else {
							?>
								<i class="icon-left-dir">
								</i>
							<?php
								}
							?>	
						</div>
						<div class="page count">Page
							<?php 
							$paged = (get_query_var('paged')) ? get_query_var('paged') : 1; 
							echo $paged.' of '.$wp_query->max_num_pages; 
							?>
						</div>
						<div class="page right">
								<?php 
								if( get_next_posts_link() != '') {
									next_posts_link('<i class="icon-right-dir"></i>'); 
								} 
								else {
								?>
								<i class="icon-right-dir">
								</i>
								<?php
								}
								?>	
						</div>
					</div>
    			</div>
			</div>	
    	</div>
	<?php else :?>
		<div class="container content">
			<div class="eight post columns type-text content-else">
				<h3 class="title">
					Not Found
				</h3>
				<div class="entry body">
					<p>
						Sorry. No posts could be found matching your criteria.
					</p>	
				</div>
			</div>
		</div>
	<?php endif; ?>
<?php get_footer(); ?>
	